home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Oct 89 / Z0099-Re How to detect po-Oct89 < prev    next >
Encoding:
Text File  |  1989-10-16  |  945 b   |  31 lines  |  [TEXT/GEOL]

  1. Item    1555365                         16-Oct-89        18:25
  2.  
  3. From:   ROSENSTEIN1                     Rosenstein, Larry
  4.  
  5. To:     D2086                           Efficient Field Svc, C Faith,PRT
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    Re: How to detect potential…
  10.  
  11. Curtis,
  12.  
  13. It look like you can use TObject.ForAllSubClassesDo to find all subclasses of
  14. TDocument.  You can then convert the ObjClassID to a string and/or create an
  15. object of that class.
  16.  
  17. You can't invoke a method without specifying an object.  The object is an
  18. implicit parameter to the method, and in general, the method will access fields
  19. and other methods of the object.
  20.  
  21. It sounds like what you want are class method (a la Smalltalk), which Object
  22. Pascal doesn't have.  The best you can do is to put the method in TMyDocument,
  23. make all document classes subclasses of TMyDocument, and create the object
  24. solely to call the method.
  25.  
  26. Larry
  27.  
  28.  
  29.  
  30.  
  31.